package cn.csddxt.util;

import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

public class Springutil {
	public static Springutil spt = new Springutil();
	private static ApplicationContext app;
	static {
		app = new ClassPathXmlApplicationContext("app*.xml");
	}

	// private
	public static Object getspring(Class st) {
		return app.getBean(st);

	}
}
